/***************************************************************************
*  File name: svrInit.cpp
*   Describe: 数据库连接初始化
* Created on: 2016-8-6
*     Author: dengxiudong
****************************************************************************/

#include <iomanip>
#include <iostream>
#include <string>
#include <fstream>

#include <acl_cpp/acl_cpp_init.hpp>
#include <acl_cpp/redis/redis.hpp>
#include <acl_cpp/redis/redis_client.hpp>
#include <acl_cpp/redis/redis_client_cluster.hpp>

#include <loong/IniFile.h>
#include <loong/Logger.h>
#include <loong/MySqlDB.h>

#include "SdbOpt.h"


struct Config
{
    //mysql配置
    std::string mysqlIP;
    int mysqlPort;
	int mysqlPoolSize;
    std::string mysqlUserName;
    std::string mysqlPasswd;
    std::string mysqlDB;
    //redis配置
    std::string redisAddr;
    std::string redisPasswd;
    int redisCluster;
    //SequioaDB配置
    std::string sdbIP;
    int sdbPort;
    std::string sdbUserName;
    std::string sdbPasswd;
};

extern loong::MySqlPool *g_sqlPool;
extern acl::redis *g_redisCmd;
extern acl::redis_client *g_redisCli;
extern acl::redis_client_cluster *g_cluster;
extern SdbOpt *g_sdbop;


int sysInit();





